package com.hopes.bizz.close.basic.vo;

import com.hopes.bizz.close.basic.entity.ClosedControlAreaMeasureEntity;
import com.hopes.bizz.close.common.constant.enums.ParkCloseSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 分级管控措施
 * @time 2024/1/23 18:43
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class ClosedControlAreaMeasureVO extends ClosedControlAreaMeasureEntity {

    private static final long serialVersionUID = -7226429007467425553L;

    @Schema(description="管控级别")
    private Integer level;

    public String getLevelStr() {
        return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_area_control_level, this.getLevel());
    }


}
